"""
功能描述：


类
    初始化方法
    
    实例化方法
    
"""
print("hello world")

# 需求分析:如果用户年龄大于等于18岁,即成年,输出"已经成年,可以上网"。
age = int(input("请输入年龄:"))
if age >= 18:
    print("allow network")
else:
    print("not allow network")

# 判断年龄是否在0-18岁之间:
age1 = int(input("input age:"))
if age1 >=0 and age1<=18:
    print("age in 0~18 between")
    print(isinstance(age1, int))
elif age1 >18 and age1 <60:
    print("age not in 0~18 between ")
else :
    print("go home")

print("是整数类型吗",isinstance('a',int))

if __name__ == '__main__':

    a = True
    print(type(a))